package fu.capstone.hanoicityguide.business.bo.home;

import java.util.ArrayList;

import android.content.Context;
import fu.capstone.hanoicityguide.business.model.Category;
import fu.capstone.hanoicityguide.business.model.Home;
import fu.capstone.hanoicityguide.business.model.Place;
import fu.capstone.hanoicityguide.dataaccess.home.HomeDAO;
import fu.capstone.hanoicityguide.dataaccess.home.HomeDAOImp;

public class HomeBOImp implements HomeBO {
	private Context context;
	private HomeDAO dao;

	public HomeBOImp() {

	}

	public HomeBOImp(Context context) {
		this.context = context;
		dao = new HomeDAOImp(context);
	}

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}

	@Override
	public Home browseHome() {
		// TODO Auto-generated method stub
		return dao.browseHome();
	}

	@Override
	public ArrayList<Category> getListCategory(String filter) {
		// TODO Auto-generated method stub
		return dao.getListCategory(filter);
	}

	@Override
	public ArrayList<Place> searchPlace(String keyword,
			ArrayList<String> filter, String sorter) {
		// TODO Auto-generated method stub
		return dao.searchPlace(keyword, filter, sorter);
	}

}
